import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BarChartDirective } from './charts/barChart.directive';
import { ChartSliderDirective } from './charts/chartSlider.directive';
import { AmChartsService, AmChartsModule } from '@amcharts/amcharts3-angular';

/**
 * Charts module. Contains all chart directives
 *
 * Author: Sorin Spiru
 * Date: 13.01.2018
 */
@NgModule({
    providers:[AmChartsService],
    imports:[
        CommonModule,
        AmChartsModule
    ],
    declarations: [
        BarChartDirective,       
        ChartSliderDirective       
    ],
    exports:[
        BarChartDirective,     
        ChartSliderDirective        
    ]
})
export class ChartsModule { }
